package com.bf.electroplating.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AttModuleEnums {

    COMPANY("1", "企业档案"),
    PRODUCTION("2","生产信息"),
    EIA("3","环评文件"),
    APPROVAL("4","批复文件"),
    ACCEPTANCE("5","验收文件"),
    ORIGINAL("6", "正本附件"),
    DUPLICATE("7", "副本附件"),
    SELF_TESTING("8","自行检测报告"),
    CONTINGENCY_PLAN("9","应急预案"),
    WORKSHOP("10","车间信息"),
    INSPECTION_PHOTO("11", "巡检照片"),
    INSPECTION_ATTACHMENT("12", "巡检附件"),
    PROBLEM_PHOTO("13", "问题发现照片"),
    PROBLEM_RECTIFICATION_PHOTO("14", "问题发现整改照片"),
    RENOVATE_PHOTO("15", "问题整治照片"),
    RENOVATE_RECTIFICATION_PHOTO("16", "问题整治整改照片"),
    USER_PHOTO("17", "用户头像"),
    FLOOR_PLAN("18", "平面布置图"),
    SCENE("19", "现场照片"),
    EIA_CHAPTER("20", "环评章节图"),
    STANDARD_SPECIFICATION("21", "标准规范"),
    WARN_SOLVE("21", "预警处置"),
    ;

    private final String code;
    private final String desc;

    public static String getDesc(String code) {
        for (AttModuleEnums item : AttModuleEnums.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }


}


